package cn.kgc.bilibili.service.impl;

import cn.kgc.bilibili.dao.DanmuMapper;
import cn.kgc.bilibili.pojo.Danmu;
import cn.kgc.bilibili.service.DanmuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service("danmuService")
public class DanmuServiceImpl implements DanmuService {

    @Resource
    DanmuMapper danmuMapper;
    @Override
    public List<Danmu> getAllDanmu() {
        return danmuMapper.getAllDanmu();
    }

    @Override
    public int addDanmu(Danmu danmu) {
        return danmuMapper.addDanmu(danmu);
    }

    @Override
    public List<Danmu> getDanmuByMeasureId(Integer measureId) {
        return danmuMapper.getDanmuByMeasureId(measureId);
    }
}
